package ooday01;

public class StudentPractice {
    // 1 成员变量
    int listNumber;
    String name;
    int age;
    char gender;
    String address;
    String classRoom;
    String major;

    // 2 构造方法
    StudentPractice(){}
    StudentPractice(int listNumber, String name, int age, char gender, String address, String classRoom, String major){
        this.listNumber = listNumber;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.address = address;
        this.classRoom = classRoom;
        this.major = major;
    }

    // 3 方法（行为/功能模块）
    void display(){
        System.out.println("********************  Info  **************************");
        System.out.println("Name: " + name + "\t\t\t\t" + "Gender: "+ gender+"\t");
        System.out.println("Age: " + age + "\t\t" + "StudentId: " + listNumber+"\t\t" + "ClassRoom: "+ classRoom+"\t");
        System.out.println("Address: " + address+"\t\t\t\t" + "Major: " + major+"\t");
        System.out.println("******************************************************");
    }

}
